<template>
  <div>
    <h2>Component 1</h2>
    <button @click="isOutput = !isOutput">Toggle</button>
    <slot :isOutput="isOutput"></slot>
  </div>
</template>
<script>
export default {
  data() {
    return {
      isOutput: false
    }
  }
}
</script>
<style lang="">

</style>